<%-- 
    Document   : my_career
    Created on : Feb 13, 2012, 10:27:17 PM
    Author     : Admin
--%>

<%@page import="entity.Vacancy"%>
<%@page import="java.util.ArrayList"%>
<%@page import="model.VacancyModel"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<html>
    <head>
        <title>Recruitment</title>
        <link rel="shortcut icon" href="images/favicon.ico"/>
        <link href="css/dark.css" rel="stylesheet" type="text/css" />
        <link href="css/prettyPhoto.css" rel="stylesheet" type="text/css" />
        <link href="css/nivo-slider.css" rel="stylesheet" type="text/css" />
        <link href="css/noscript.css" rel="stylesheet" type="text/css" media="screen,all" id="noscript" />
        <!-- Stylesheets End //-->

        <!-- Javascript Start //-->
        <script type="text/javascript" src="js/jquery.js"></script>
        <script type="text/javascript" src="js/jqueryslidemenu.js"></script>
        <script type="text/javascript" src="js/jquery.prettyPhoto.js"></script>
        <script type="text/javascript" src="js/jquery.nivo.slider.pack.js"></script>
        <script type="text/javascript" src="js/colorpicker.js"></script>
        <script type="text/javascript" src="js/jquery.cookie.js"></script>
        <script type="text/javascript" src="js/cufon.js"></script>
        <script type="text/javascript" src="js/fonts/ColaborateLight.js"></script>
        <script type="text/javascript" src="js/functions.js"></script>
        <script type="text/javascript" src="js/switcher.js"></script>

        <script type="text/javascript">
            $(window).load(function() {
                $('#slider').nivoSlider({
                    effect:'random',
                    pauseTime:3000, // How long each slide will show
                    directionNav:true, // Next and Prev navigation
                    directionNavHide:true, // Only show on hover
                    controlNav:true // 1,2,3... navigation
                });
            });
        </script>
        <script type="text/javascript">
            Cufon.replace('h1')('h2')('h3')('h4')('h5')('#myslidemenu a',{hover: 'true'})('#myslidemenu li li a',{textShadow: '1px 1px #ffffff',hover: 'true'})('a.button', {hover: 'true'})('.nivo-caption p');
        </script>

        <style type="text/css">
            body{
                font-family: Arial, Tahoma, Verdana, sans-serif;
                font-size: 12px;
                color: #333;
            }
            table{background-image: url("./administrator/img/ws_datagrid_header.png");
                  background-repeat: no-repeat;
                  background-position: top center;
                  width: 620px;
            }
            table tr{
                line-height: 35px;
            }
            table td{text-align: left;}
            thead{
                display: table-header-group;
                text-align: left;
                border-color: inherit;
            }
            table thead tr{
                color: #005ca2;
                font-size: 12px;
                background-color: #E0E8F2;
                line-height: 36px;
            }
            table thead tr th{
                margin: 0px;
                padding: 0px;
                border-bottom: 2px solid #CED6E0;
                text-align: left;
                padding: 0px 5px;
            }
            .highlight{
                background-color: #F3F7FC;
            }
        </style>
    </head>
    <body>
        <jsp:include page="include/header.jsp"/>
        <br><br>
        <h3 style="text-decoration: underline;">* My career</h3>
        <br><br>

        <table id="tbEmp">
            <thead>
                <tr>
                    <th>Vacancy Title</th>
                    <th>Salary</th>
                    <th>Close date</th>
                    <th>Status</th>
                </tr>
            </thead>

            <tbody>
                <%  VacancyModel vm = new VacancyModel();
                            ArrayList<Vacancy> lstVacancy = vm.getApplyVacancy(request.getSession().getAttribute("aid").toString());

                            if (lstVacancy.size() == 0) {
                                out.println("");
                            }

                %>
                <%for (int i = 0; i < lstVacancy.size(); i++) {%>
                <tr class="highlight" style="border: 1px solid #aaaaaa;">
                    <td><%=lstVacancy.get(i).getVacancyTitle()%></td>
                    <td><%=lstVacancy.get(i).getSalary()%></td>
                    <td><%=lstVacancy.get(i).getCloseDate()%></td>
                    <td><%=lstVacancy.get(i).getStatus()%></td>
                </tr>
                <% }%>
            </tbody>

        </table>
        <jsp:include page="include/footer.jsp"/>
    </body>
</html>
